home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Simple_Bil206355522007.psc / FileProtection Pro / frmMain.frm < prev   
Text File  |  2007-04-25  |  24KB  |  689 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  4. Begin VB.Form frmMain 
  5.    BackColor       =   &H8000000D&
  6.    BorderStyle     =   1  'Fixed Single
  7.    Caption         =   "File Protection Pro"
  8.    ClientHeight    =   6945
  9.    ClientLeft      =   45
  10.    ClientTop       =   435
  11.    ClientWidth     =   10950
  12.    Icon            =   "frmMain.frx":0000
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   6945
  17.    ScaleWidth      =   10950
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin VB.FileListBox File1 
  20.       Height          =   1260
  21.       Left            =   11040
  22.       TabIndex        =   21
  23.       Top             =   1080
  24.       Width           =   3495
  25.    End
  26.    Begin VB.Frame Fr 
  27.       BackColor       =   &H8000000D&
  28.       BorderStyle     =   0  'None
  29.       Height          =   6135
  30.       Index           =   3
  31.       Left            =   240
  32.       TabIndex        =   17
  33.       Top             =   600
  34.       Visible         =   0   'False
  35.       Width           =   10455
  36.       Begin VB.TextBox txtHelp 
  37.          BeginProperty Font 
  38.             Name            =   "Tahoma"
  39.             Size            =   9.75
  40.             Charset         =   0
  41.             Weight          =   400
  42.             Underline       =   0   'False
  43.             Italic          =   0   'False
  44.             Strikethrough   =   0   'False
  45.          EndProperty
  46.          Height          =   6015
  47.          Left            =   0
  48.          MultiLine       =   -1  'True
  49.          TabIndex        =   18
  50.          Top             =   0
  51.          Width           =   10455
  52.       End
  53.    End
  54.    Begin VB.Frame Fr 
  55.       BackColor       =   &H8000000D&
  56.       BorderStyle     =   0  'None
  57.       Caption         =   "Frame2"
  58.       Height          =   6135
  59.       Index           =   2
  60.       Left            =   240
  61.       TabIndex        =   13
  62.       Top             =   600
  63.       Visible         =   0   'False
  64.       Width           =   10455
  65.       Begin VB.Image Image1 
  66.          Height          =   2400
  67.          Left            =   0
  68.          Picture         =   "frmMain.frx":164A
  69.          Top             =   0
  70.          Width           =   1980
  71.       End
  72.       Begin VB.Label Label5 
  73.          Alignment       =   2  'Center
  74.          BackStyle       =   0  'Transparent
  75.          Caption         =   "Matasurya«"
  76.          BeginProperty Font 
  77.             Name            =   "Arial"
  78.             Size            =   9.75
  79.             Charset         =   0
  80.             Weight          =   400
  81.             Underline       =   0   'False
  82.             Italic          =   0   'False
  83.             Strikethrough   =   0   'False
  84.          EndProperty
  85.          ForeColor       =   &H8000000B&
  86.          Height          =   375
  87.          Left            =   0
  88.          TabIndex        =   16
  89.          Top             =   4080
  90.          Width           =   1935
  91.       End
  92.       Begin VB.Image Image2 
  93.          Height          =   960
  94.          Left            =   480
  95.          Picture         =   "frmMain.frx":31D2
  96.          Top             =   3000
  97.          Width           =   960
  98.       End
  99.       Begin VB.Label Label6 
  100.          Alignment       =   2  'Center
  101.          BackStyle       =   0  'Transparent
  102.          Caption         =   "Kutukeyboard@yahoo.com"
  103.          BeginProperty Font 
  104.             Name            =   "Small Fonts"
  105.             Size            =   6.75
  106.             Charset         =   0
  107.             Weight          =   400
  108.             Underline       =   0   'False
  109.             Italic          =   0   'False
  110.             Strikethrough   =   0   'False
  111.          EndProperty
  112.          ForeColor       =   &H8000000B&
  113.          Height          =   255
  114.          Left            =   0
  115.          TabIndex        =   15
  116.          Top             =   2520
  117.          Width           =   1935
  118.       End
  119.       Begin VB.Label lblAbout 
  120.          BackStyle       =   0  'Transparent
  121.          BeginProperty Font 
  122.             Name            =   "Tahoma"
  123.             Size            =   9.75
  124.             Charset         =   0
  125.             Weight          =   400
  126.             Underline       =   0   'False
  127.             Italic          =   0   'False
  128.             Strikethrough   =   0   'False
  129.          EndProperty
  130.          ForeColor       =   &H00FFFFFF&
  131.          Height          =   6015
  132.          Left            =   2040
  133.          TabIndex        =   14
  134.          Top             =   120
  135.          Width           =   8415
  136.       End
  137.    End
  138.    Begin VB.Frame Fr 
  139.       BackColor       =   &H8000000D&
  140.       BorderStyle     =   0  'None
  141.       Caption         =   "Frame1"
  142.       Height          =   6135
  143.       Index           =   1
  144.       Left            =   240
  145.       TabIndex        =   9
  146.       Top             =   600
  147.       Visible         =   0   'False
  148.       Width           =   10455
  149.       Begin VB.CommandButton cmd 
  150.          BackColor       =   &H8000000D&
  151.          Caption         =   "Unprotect All"
  152.          Height          =   375
  153.          Index           =   4
  154.          Left            =   8880
  155.          MaskColor       =   &H8000000D&
  156.          TabIndex        =   20
  157.          Top             =   5760
  158.          Width           =   1575
  159.       End
  160.       Begin VB.CommandButton cmd 
  161.          BackColor       =   &H8000000D&
  162.          Caption         =   "Unprotect Selected"
  163.          Height          =   375
  164.          Index           =   3
  165.          Left            =   7200
  166.          MaskColor       =   &H8000000D&
  167.          TabIndex        =   12
  168.          Top             =   5760
  169.          Width           =   1575
  170.       End
  171.       Begin VB.ListBox Lst2 
  172.          Height          =   5715
  173.          Left            =   2280
  174.          TabIndex        =   11
  175.          Top             =   0
  176.          Width           =   8175
  177.       End
  178.       Begin VB.ListBox Lst1 
  179.          Height          =   5715
  180.          Left            =   0
  181.          TabIndex        =   10
  182.          Top             =   0
  183.          Width           =   2175
  184.       End
  185.    End
  186.    Begin MSComctlLib.ImageList Img 
  187.       Left            =   11880
  188.       Top             =   480
  189.       _ExtentX        =   1005
  190.       _ExtentY        =   1005
  191.       BackColor       =   -2147483643
  192.       MaskColor       =   12632256
  193.       _Version        =   393216
  194.    End
  195.    Begin MSComctlLib.ProgressBar pbar 
  196.       Height          =   255
  197.       Left            =   6360
  198.       TabIndex        =   0
  199.       Top             =   120
  200.       Visible         =   0   'False
  201.       Width           =   4455
  202.       _ExtentX        =   7858
  203.       _ExtentY        =   450
  204.       _Version        =   393216
  205.       Appearance      =   1
  206.       Scrolling       =   1
  207.    End
  208.    Begin MSComDlg.CommonDialog Dlg 
  209.       Left            =   11280
  210.       Top             =   480
  211.       _ExtentX        =   847
  212.       _ExtentY        =   847
  213.       _Version        =   393216
  214.    End
  215.    Begin VB.Frame Fr 
  216.       BackColor       =   &H8000000D&
  217.       BorderStyle     =   0  'None
  218.       Height          =   6135
  219.       Index           =   0
  220.       Left            =   240
  221.       TabIndex        =   1
  222.       Top             =   600
  223.       Width           =   10455
  224.       Begin VB.CommandButton cmd 
  225.          BackColor       =   &H8000000D&
  226.          Caption         =   "Protect All"
  227.          Height          =   375
  228.          Index           =   2
  229.          Left            =   8880
  230.          MaskColor       =   &H8000000D&
  231.          TabIndex        =   19
  232.          Top             =   5760
  233.          Width           =   1575
  234.       End
  235.       Begin VB.CommandButton cmd 
  236.          BackColor       =   &H8000000D&
  237.          Caption         =   "Add Folder"
  238.          Height          =   375
  239.          Index           =   1
  240.          Left            =   7320
  241.          MaskColor       =   &H8000000D&
  242.          TabIndex        =   8
  243.          Top             =   5760
  244.          Width           =   1455
  245.       End
  246.       Begin VB.CommandButton cmd 
  247.          BackColor       =   &H8000000D&
  248.          Caption         =   "Add Files"
  249.          Height          =   375
  250.          Index           =   0
  251.          Left            =   5760
  252.          MaskColor       =   &H8000000D&
  253.          TabIndex        =   7
  254.          Top             =   5760
  255.          Width           =   1455
  256.       End
  257.       Begin VB.ListBox LstBrowse 
  258.          Height          =   5715
  259.          Left            =   0
  260.          TabIndex        =   2
  261.          Top             =   0
  262.          Width           =   10455
  263.       End
  264.    End
  265.    Begin VB.Label lbl 
  266.       Alignment       =   2  'Center
  267.       BackStyle       =   0  'Transparent
  268.       Caption         =   "Help"
  269.       BeginProperty Font 
  270.          Name            =   "Tahoma"
  271.          Size            =   8.25
  272.          Charset         =   0
  273.          Weight          =   400
  274.          Underline       =   0   'False
  275.          Italic          =   0   'False
  276.          Strikethrough   =   0   'False
  277.       EndProperty
  278.       ForeColor       =   &H00FFFFFF&
  279.       Height          =   255
  280.       Index           =   3
  281.       Left            =   4920
  282.       TabIndex        =   6
  283.       Top             =   240
  284.       Width           =   1215
  285.    End
  286.    Begin VB.Label lbl 
  287.       Alignment       =   2  'Center
  288.       BackStyle       =   0  'Transparent
  289.       Caption         =   "About"
  290.       BeginProperty Font 
  291.          Name            =   "Tahoma"
  292.          Size            =   8.25
  293.          Charset         =   0
  294.          Weight          =   400
  295.          Underline       =   0   'False
  296.          Italic          =   0   'False
  297.          Strikethrough   =   0   'False
  298.       EndProperty
  299.       ForeColor       =   &H00FFFFFF&
  300.       Height          =   255
  301.       Index           =   2
  302.       Left            =   3360
  303.       TabIndex        =   5
  304.       Top             =   240
  305.       Width           =   1215
  306.    End
  307.    Begin VB.Label lbl 
  308.       Alignment       =   2  'Center
  309.       BackStyle       =   0  'Transparent
  310.       Caption         =   "Protected"
  311.       BeginProperty Font 
  312.          Name            =   "Tahoma"
  313.          Size            =   8.25
  314.          Charset         =   0
  315.          Weight          =   400
  316.          Underline       =   0   'False
  317.          Italic          =   0   'False
  318.          Strikethrough   =   0   'False
  319.       EndProperty
  320.       ForeColor       =   &H00FFFFFF&
  321.       Height          =   255
  322.       Index           =   1
  323.       Left            =   1800
  324.       TabIndex        =   4
  325.       Top             =   240
  326.       Width           =   1215
  327.    End
  328.    Begin VB.Label lbl 
  329.       Alignment       =   2  'Center
  330.       BackStyle       =   0  'Transparent
  331.       Caption         =   "Protect More"
  332.       BeginProperty Font 
  333.          Name            =   "Tahoma"
  334.          Size            =   8.25
  335.          Charset         =   0
  336.          Weight          =   400
  337.          Underline       =   0   'False
  338.          Italic          =   0   'False
  339.          Strikethrough   =   0   'False
  340.       EndProperty
  341.       ForeColor       =   &H00FFFFFF&
  342.       Height          =   255
  343.       Index           =   0
  344.       Left            =   240
  345.       TabIndex        =   3
  346.       Top             =   240
  347.       Width           =   1215
  348.    End
  349.    Begin VB.Shape Shape1 
  350.       BackColor       =   &H8000000D&
  351.       BackStyle       =   1  'Opaque
  352.       BorderColor     =   &H80000005&
  353.       Height          =   6375
  354.       Left            =   120
  355.       Top             =   480
  356.       Width           =   10695
  357.    End
  358.    Begin VB.Shape Shp 
  359.       BackColor       =   &H80000001&
  360.       BackStyle       =   1  'Opaque
  361.       BorderColor     =   &H00FFFFFF&
  362.       Height          =   735
  363.       Index           =   0
  364.       Left            =   120
  365.       Shape           =   4  'Rounded Rectangle
  366.       Top             =   120
  367.       Width           =   1455
  368.    End
  369.    Begin VB.Shape Shp 
  370.       BackColor       =   &H8000000D&
  371.       BackStyle       =   1  'Opaque
  372.       BorderColor     =   &H00FFFFFF&
  373.       Height          =   735
  374.       Index           =   1
  375.       Left            =   1680
  376.       Shape           =   4  'Rounded Rectangle
  377.       Top             =   120
  378.       Width           =   1455
  379.    End
  380.    Begin VB.Shape Shp 
  381.       BackColor       =   &H8000000D&
  382.       BackStyle       =   1  'Opaque
  383.       BorderColor     =   &H00FFFFFF&
  384.       Height          =   735
  385.       Index           =   2
  386.       Left            =   3240
  387.       Shape           =   4  'Rounded Rectangle
  388.       Top             =   120
  389.       Width           =   1455
  390.    End
  391.    Begin VB.Shape Shp 
  392.       BackColor       =   &H8000000D&
  393.       BackStyle       =   1  'Opaque
  394.       BorderColor     =   &H00FFFFFF&
  395.       Height          =   735
  396.       Index           =   3
  397.       Left            =   4800
  398.       Shape           =   4  'Rounded Rectangle
  399.       Top             =   120
  400.       Width           =   1455
  401.    End
  402. End
  403. Attribute VB_Name = "frmMain"
  404. Attribute VB_GlobalNameSpace = False
  405. Attribute VB_Creatable = False
  406. Attribute VB_PredeclaredId = True
  407. Attribute VB_Exposed = False
  408. Dim f
  409. Dim i As Integer
  410. Dim j As Byte
  411. Private WithEvents iClass As CDrag_Drop
  412. Attribute iClass.VB_VarHelpID = -1
  413. Private size As New CResize
  414.  
  415. Private Sub iClass_FilesDroped()
  416. Dim v As Integer
  417. With iClass
  418.   For v = 0 To .FileCount - 1
  419.     LstBrowse.AddItem .FileName(v)
  420.   Next
  421. End With
  422. LstBrowse.ListIndex = 0
  423. End Sub
  424.  
  425. Sub saveLst()
  426. f = FreeFile
  427. If Lst1.ListIndex > 0 Then Lst1.ListIndex = 0
  428. If Lst2.ListIndex > 0 Then Lst2.ListIndex = 0
  429. Open App.Path & "\MTdx.dll" For Output As #f
  430.   For i = 0 To Lst2.ListCount - 1
  431.     Print #f, Lst2.Text
  432.     If Not Lst2.ListIndex = Lst2.ListCount - 1 Then Lst2.ListIndex = Lst2.ListIndex + 1
  433.   Next
  434. Close #f
  435. If Lst1.ListIndex > 0 Then Lst1.ListIndex = 0
  436. If Lst2.ListIndex > 0 Then Lst2.ListIndex = 0
  437. Lst2.SetFocus
  438. End Sub
  439.  
  440. Private Function BrowseForFolder(ByVal lngHwnd As Long, ByVal strPrompt As String) As String
  441. On Error GoTo ehBrowseForFolder 'Trap for errors
  442. Dim intNull As Integer
  443. Dim lngIDList As Long, lngResult As Long
  444. Dim strPath As String
  445. Dim udtBI As BrowseInfo
  446. With udtBI 'Set API properties (housed in a UDT)
  447.   .lngHwnd = lngHwnd
  448.   .lpszTitle = lstrcat(strPrompt, "")
  449.   .ulFlags = BIF_RETURNONLYFSDIRS
  450. End With
  451. lngIDList = SHBrowseForFolder(udtBI) 'Display the browse folder...
  452. If lngIDList <> 0 Then
  453.   strPath = String(MAX_PATH, 0) 'Create string of nulls so it will fill in with the path\
  454.   lngResult = SHGetPathFromIDList(lngIDList, strPath) 'Retrieves the path selected, places in the null character filled string
  455.   Call CoTaskMemFree(lngIDList) 'Frees memory
  456.   intNull = InStr(strPath, vbNullChar) 'Find the first instance of a null character, so we can get just the path
  457.   If intNull > 0 Then 'Greater than 0 means the path exists...
  458.     strPath = Left(strPath, intNull - 1) 'Set the value
  459.   End If
  460. End If
  461. File1.Path = strPath 'Return the path name
  462. Exit Function 'Abort
  463.  
  464. ehBrowseForFolder:
  465. BrowseForFolder = Empty 'Return no value
  466. End Function
  467.  
  468. Private Sub DoEncrypt(sFile As String)
  469. Dim csCrypt       As New clsCrypto
  470. Dim strFile       As String
  471. Dim lFileLength   As Long
  472. lFileLength = FileLen(sFile) ' get length of file to encrypt
  473. strFile = String(lFileLength, vbNullChar) ' allocate string to hold file
  474. Open sFile For Binary Access Read As #1 ' open file in binary
  475.   Get 1, , strFile
  476. Close #1
  477. csCrypt.Password = FrmLog.Tag  ' Get password
  478. csCrypt.InBuffer = strFile
  479. If Not csCrypt.HashFile Then Exit Sub 'generate hash of original file
  480. If Not csCrypt.GeneratePasswordKey Then Exit Sub ' generate password
  481. If Not csCrypt.EncryptFileData Then Exit Sub ' encrypt message data
  482. csCrypt.DestroySessionKey ' destroy key
  483. ' check for valid data
  484. If csCrypt.OutBuffer <> "" Then
  485.   Kill sFile ' delete current data file
  486.   Open sFile For Binary Access Write As #2 ' open new file for binary write
  487.     Put 2, , csCrypt.OutBuffer ' write encrypted data to file
  488.   Close #2 ' close open file
  489. End If
  490. End Sub
  491.  
  492. Private Sub DoDecrypt(sFile As String)
  493. On Error Resume Next
  494. ' decrypt file sub
  495. Dim csCrypt     As New clsCrypto
  496. Dim strFile     As String
  497. Dim lFileLength As String
  498. lFileLength = FileLen(sFile) ' get length of file
  499. strFile = String(lFileLength, vbNullChar) ' allocate string to hold file
  500. Open sFile For Binary Access Read As #1 ' open file in binary mode
  501.   Get 1, , strFile
  502. Close #1
  503. csCrypt.Password = FrmLog.Tag  ' set password
  504. csCrypt.InBuffer = strFile
  505. If Not csCrypt.GeneratePasswordKey Then Exit Sub ' generate password
  506. If Not csCrypt.DecryptFileData Then Exit Sub ' decrypt message
  507. csCrypt.DestroySessionKeyt Sub 'generate hash of original file
  508. If Not csCrypt.GenerMrycsCrypmNded RectangleM=acess Write As #2 ' open new file forile fo2"u passwu'filledn new trFile = String(lFileLenvatek3n(sFile)ocsCrPMl fL3isate hash  fo2mrFordecrypt messa
  509. Close rd
  510. csCrypt.InBuffer = strFile
  511. If Not csCrypt.Ge Crypt.InBuffeCrypt. ess Write As #2 OsCrypt.DeonKnKeyt Sub '1Cu ess Write As #2 OsCrypt.Deon 
  512. c&H0 fie AsyilesDtIndex = 0
  513. OpsackCie AsyilesDtIny2 OsCre For BinarckCie AsyilesDtIny2 OsCrSunt - 1 Then Lst2.ListIndex = Lst2.ListIndex + 1
  514.   Next
  515. Close #fM1 1
  516. ai7ext
  517. Cp752re FL(   t will fill in with the1"nfAs String
  518. Dim lFileLength As String
  519. lFileLength = FileLenS2.rite enoGe Crstring of nAs String
  520. lFileLength = FileLendsess Writeu ess Writy8eLendsess Wri
  521. e
  522.   Get 1, , strFile
  523. Close #1
  524. csCrypt.Password = FrmLog.Taerm8         =   ,         Undi-8
  525.  stso(False
  526.      di-8
  527.  stso8
  528.  stso(False
  529.      di-8
  530.  stso8
  531.  stso(False
  532.      di-8
  533.  stso8
  534.  stso(False
  535.      di-8
  536.  stso8
  537.  stso(False
  538.      di-8
  539.  stso8
  540.  stso(False
  541.      di-8
  542.  stso8
  543.  stso(False
  544.      di-8
  545.  stso8
  546.  stso(False
  547.      di-8
  548.  stso8
  549.  stso(False
  550.      di-8
  551.  stso8
  552.  stso(False
  553.    lleLengt
  554. esDtIny2 OsCre FiO(FaA 
  555. c&H0 fie AsyilesDtIndex = 0
  556. FiO(FaA 
  557. c&H0 fiipstso8
  558.  sstso8
  559. x = 0
  560. FiO(FaA 
  561. c&H0 f > 0 Then Lst2.Lhenn = Lstau.
  562. I
  563.  stllerite0so(False
  564.  Lstau.
  565. I
  566.  stllerite0so(Fal     dto
  567. Dim 0c
  568.  s
  569.  shen Exit Sub ' encrypt message data
  570. csCrypt.DestroySessionKey a_1fe6d If
  571. End If
  572. File1.Path =unt - 1
  573.   1Ugyt Sub 'geneOsyera'v1so(Fal     d1Ugyt Sub 'geneOsyera'v1so(FaCrPMl fL3isoTv-+uuuuuuuuuuu0 sstspS(p   dtoDeLeftBackStyle  r't 2eneOsyera'v1so(FaCrPMl fL3isoTv-+uuuuuuuuuuu0 sstspS(p   dtoDeLeftBackStyle  r't 2eneOsyera'v1so(FaCrPMl fL3isoTv-+uuuuuuuuuuu0 sstspS(p   dtoDeLeftBackStyle  r't 2eneOsyera'v1so(FaCrPMl fL3isoTv-+uuuuuuuuuuu0 sstspS( a'v1so(FaC,MT4lv1so(FaCrPMl fL3isinarckCie AsyilesDtIny2 OsCrSu
  574. I
  575.  stllerite0so(Fao7ai3Aey
  576. ' check foro1a03S1Kds02vesCry2Dciieu6a4   Undi-8
  577.  stso(False
  578.      di-8
  579.  stso8
  580.  stso(False
  581.      di-8
  582.  stso8
  583.  stso(False
  584.    dlse
  585.  CCie{ai3Ae'ie AW(Fa  Undi1
  586.    dlse
  587. aFaCrPMl fL3isoTv-+uuuuuuuuuu
  588. DimsssssFpS( a'v1sotm8 3eso8
  589.  stso(False
  590.  uu
  591. DimsssssFpS( a'v1sotm8 3o.I 0 TeT d1Ugyt Sub '
  592.  stllerite0so(Fao7ai3Aelv
  593. Ifse
  594.   fL3isoTv
  595.  uu
  596. DimsssssFouuuuuuu0 sstFm8 3o.I 0 TeT _PATHClistu
  597. If lngIDList <> 09e=file
  598. Open sFile For Binary Access 
  599. p )3t Sub 'generate hXT9no 74ce = FBuuuuu<> 09e=ftMDmssssl fL3isCryary lye
  600. aFaCrPMl fr'no 74ce = FBuuuuu<> 09e=ftMDmssssl fL3isCryary lye
  601. aFaCrPMl fr'no 74ce = FBce = FBuuuuu<> 09e=ftMDmssssl fL3isCryary lye
  602. aFaCrPMl fr'no 74ce = FBuuuuush Ta7   dlrowse.AddItem .FileName(v)
  603.   Next
  604. End With
  605. LstBrowse.LAoOpen r fL3isoTveNPpG<> 09e=file
  606. Open sFile For Binary Access 
  607. p )3t Sub 'generate hXTI hXTI hXTI hXps 
  608. eNn_C5SaOT  Und
  609.    For Bi
  610. Open d
  611.    Forjo(Falsejsyile = FBuu_C5SaOT  Und
  612. 2laf 0hu3qdO Next
  613. End Wiwsl fL3isCryary lye
  614. aFaCrPMl fr'(,Nn_C5SaOT  UAlgisCryary lye
  615. l NepAlgisCT  Udlse
  616.  CCTa7   dlrowse.AddItem .FileNauuuuBn_C6CTa)dItem .FiaCrPMl fr'no 74ce = FBce ='TT'DvvO Nextuuuu0 sstFm8 3  Undi1
  617.    mlarPMl fouuuuuuu0 ssdDm .FileName(v)
  618.   Next
  619. fiaCspS(p   dtoDeLeftBackStyTa)dIt   dtoDeLeftBackSySessionKeyt Sub 'gen3S1Kds02vesCry2Dciieu6a4  ry2Dciieu6a4  ry2Dciieu6a4  ryqdO Next
  620. End Wie=
  621. n fo2"u passwu'filledn new trFile = Str6w trpngIDList <>ndex + 1
  622.   Next
  623. CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCLe.uuuu0 sstFm8 3 e(v)
  624.   Next
  625. fiaCspS(p   dtoDeLeftBackStyTa)dIt   dtoDeLeftBackSyCCCCCCCLe.uur'g
  626. Dim l3  'VCCCLe.uur'gD(Fa6toD2i
  627. .uuu0 sstFespS(lMDmssssl INext  ry2Dc ury2rnoDeLl INe.FileNa 10hu3qdt hXT9nn_C67ostseLeni 10hu3qdt hXT9nn lE eeeeIDList <> 0 Then
  628.   strPath = Stringbehen
  629.   strPath ==========Ikaye
  630. loDeL===aIIIIIIu.
  631. I
  632.  stllerite0so(Fal  W File
  633. Close #1
  634. csCrypt.Password  W File1M tyTa)dIt   dtoDeLeft Not csCrypt.HashFile Then Exit Su1CCCCCCCCwse.LAoOpen r fL3isoTveNPpG<> 09tpen r fL3isoTveNPpG<>rt.Password  W File1M tyTa)dIt   deNa 10hu3qdt hXT9nn_C67ostaddItem .44se
  635.    tFm8 3 Dt
  636. c&H0 fFs
  637. Tuu0 sstFespS(Dt
  638. c&H0 fFsiCCCCCCwse.LAoOTm .4tion         =   "Add FolaSnalr fL3C   
  639. L3iqdtvdtoDeLeft dtoDeLeftBac3S1Kd==========Ikaye
  640. loDeL===aIIIdow CResizBac3S1Kd==========Ikaye
  641. l8IoTvenF0eeg.TaDerL Bin1  'True
  642.          TabILaC   
  643. L3iqdtvdtoDeLeft dtoDeL     v)
  644.   NAeepdIAoOTm .4tion         =   "Add FolaSnalr fL3C   
  645. L3iqdtvdtoDeLM fL3C  aaCspS(ppeo+vMeLM fL3C  aKd=========wt(p fL3isoTveb(Dt
  646. c&H0 fFsiCCCCCCwse.LAoOTm .4tion         =   "Add FolaSnalr fiTfFsiCCCpL3C   
  647. L3iqdtvdtoDeLete Tg.TaDerL Bin1  'True
  648.  04tion         =   "Add FolaSnalr fL3C   
  649. L3iqdtvdtoDeLM fL3C  aaCspS(ppeo+vMeLM fL3C  aKd=========wt(p fL3isoTveb(Dt
  650. c&H0 fFsiCCCCCCwse.LAoOTm .4tion         =   "Add FolaSnalr fiTfFsiCCCpL3C   
  651. LH0 fdo',tring8d FolaSnalr fiTCSDt
  652. c&H0 fFsiCCCCCCwse.LAoOm8Fsi 'd=====on  H0 fFt0 fFt0 fFt0 fFt0 f==on  He ='TT'DvvO Nextuuuu0 sstFmsiCCCCCeDriCCesword  W Fip(FaNracter filled string
  653.   Call CoTaskMemFree(lngIDList) 'Frees memory
  654.   intNull = InStr(strPath, vbNullChar) 'Find the first instance of a null character, so we ctractF    A2hme(v)
  655.   Next
  656. fiaCspS(peeaacter, so we ctractF    A2r, bo we ctractF    A2r, bo we ctractF    A2r, bo we ctractF      Begin VB.ListBoRse.LAF(c3ee(lngIDList) Omract bo we crFs mhSs+lM      Begin VB.ListBoRse.LAF(c3ee(6erst) 'FreesWfL3fIH0 fFsiCCCCCCwse.LAoOTm .4tion  aaCspS(ppeCCCCCCCCCtio&PolaSnaR44sXlyera'v1sb)l2r, boSnaR42o weNextuuuu0 sstFdion tio&PolaSnaR44dl#a#2IsctractF, bGin VB.ListBoRse.LAF(c3ee(6erstDBoRse.LAF(c3ee(lngIDList) Omract bo we crFs mhSs+lM      Begin VB.ListBoRse.LAF(c3ee(6erst) 'FreesWfL3fIH0 fFsiCCCCCCwse.LAoOTm .4tion  aaCspS(ppeCCCCCCCCCtio&PolaSnaR44sXlyera'v1sb)l2r, boSnaR42o weNextuuuu0 sstFdion tio&PolaSnaR44dl#a#2IsctractF, bGin VBo 74ce = FBce ='TT'DvvO Nextuuuu0 sstFm8 3  Undi1
  657.    mlarPMlgbehen
  658.   strPath ==========Ikaye
  659. loDeL===aIIIIIIu.
  660. I
  661.  stllerite0so(Fal  W File
  662. Close #1
  663. csCrypt.Paeuallerite.Lo
  664.   strPab strPab-sCrypt.Paeuallerite.Lo
  665.   strCoSnaaeuallerix
  666.    mla3Da  W r-fu0 0S0tstrCoS4b-sfer = s1al  W File
  667. Close #1
  668. csCrypt.Paeuallerite.Lo
  669.   strPab strPab-sCryptCMse.LAF(c3ee(lngIDList) O6#mhPab-sCrypeL=8IstrPab-sCWaaaaaaaaavT:nM valueIH00rloIH00rloIH00rloIH00rloIH00rloIH00rloIH00rloIH0a, bGin VBo 74cI-c s1al  W File
  670. Close #1
  671. cbIH00rloIH00rloIH0a, b=R  Print #f, Lst2.TcI-c s1al  W File
  672. CrPab-anT96IH00rloIH00rloIH0a,Lo
  673.   ry2Dc00rld8Le    W F2istBoRse.LAF(cBBBBwoOlose #2 ' clos
  674. 3a As   La As 0rloIH0a,OmL"1 The
  675. CrPab-anT96IH00rse.PMl fL31loIFFs mhSs+s#Gr4H00r3Ctio&PolaSn3P a AsloIH.LAoOTii) e fFs
  676. Tuu0 sstFIerite.L\Tse.LAF(cBBBBwo#a#2O Next
  677. End Wiwrite.LH00rloIy H00M0rl9ny2 OsCre FiO(FaA a OsnasCrntyTa)dIt   dM0rl9nAS"i3ise0so(Fal  W File
  678. Clos iS413C   
  679. LH0 fdo',tring8d FolaSnalrList) Omract bo we crFs mhSs+lM      Begin VB.ListBoRse.LAF(Ds
  680. Tuu0orloIH00rloIH00rloIH00rloIH00rloIHm.Lo
  681. Lose #1loIH00rloyTa)dIt   fFs
  682. Tuu0 sstFIerseTo b,aMooIH0   fFs
  683. Tuu0 sstFInBuffer =ga   
  684. LH0eriti sstFInBuffer =ga    a OsaR 
  685. LH0erios iS413C   
  686. LH0 fdo'Dims7ng82aD5a OsaR 
  687. LH0erios iS413C   
  688. p00erioASxF   
  689. LH0 fdo'Dims*